import request from '@/utils/request'

//出库查询全部列表
// export function allOutbound(data){
//   return request({
//     url: `/OutboundManagement/deliveryOperation/list`,
//     method: 'get',
//     params: data
//   })

export function allOutbound(data){
  return request({
    url: "/OutboundManagement/deliveryOperation/findByZhijianList",
    method: 'get',
    params: data
  })
}
// 领料出库列表
// 查询其他出库管理列表
export function listOtherOutbound(query) {
  return request({
    url: '/OutboundManagement/otherOutbound/list',
    method: 'get',
    params: query
  })
}
// export function otherOutbound(query) {
//   return request({
//     url: '/OutboundManagement/deliveryOperation/list',
//     method: 'get',
//     params: query
//   })
// }
export function otherOutbound(query) {
  return request({
    url: '/OutboundManagement/deliveryOperation/findByZhijianList',
    method: 'get',
    params: query
  })
}
// 查询其他出库管理详细
export function getOtherOutbound(otherId) {
  return request({
    url: '/OutboundManagement/otherOutbound/' + otherId,
    method: 'get'
  })
}

// 新增其他出库管理
export function addOtherOutbound(data) {
  return request({
    url: '/OutboundManagement/otherOutbound',
    method: 'post',
    data: data
  })
}

// 修改其他出库管理
export function updateOtherOutbound(data) {
  return request({
    url: '/OutboundManagement/otherOutbound',
    method: 'put',
    data: data
  })
}

// 删除其他出库管理
export function delOtherOutbound(otherId) {
  return request({
    url: '/OutboundManagement/otherOutbound/' + otherId,
    method: 'delete'
  })
}
